<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://www.ld.com/shield/tags" prefix="shield"%>
<%@ page trimDirectiveWhitespaces="true" %>
<fmt:setLocale value="zh_CN"/>
<shield:permssion type="button">
<div >
	<!-- t改为shieldTarget，且为jQuery选择器形式 -->
    <form action="${ctxPathA}/oa/booksmanage/search" method="post" shieldTarget="#searchResult" class="searchForm">
        <div class="search-box">
		    <span class="search-i"><b>书名：</b><input type="text" name="<shield:encrypt value="like_bookName"/>"/></span>
		    <span class="search-i"><b>购买日期：</b>
		    	<input type="text" name="<shield:encrypt value="date_sbuyDate"/>" class="Wdate" value=""
                   id="startDate" onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'endDate\')}'})"/>-
            	<input type="text"name="<shield:encrypt value="date_ebuyDate"/>" value="" class="Wdate" id="endDate" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'startDate\')}'})"/>
            </span>
		    <span class="search-i"><b>借阅状态：</b>
		    	<select name="<shield:encrypt value="equal_borrowState"/>">
		    		<option value="">选择</option>
		    		<option value="0">可借阅</option>
		    		<option value="1">已借阅</option>
		    		<option value="2">其他</option>
		    	</select>
		    </span>
            <span class="search-i">
	            <input class="submit" type="submit" name="doSearch" value="查询">
	            <!-- href改为data-url -->
	            <a data-url="${ctxPathA }/oa/booksmanage/toAddOrUpdate" class="shieldDialog" viewTitle="添加书籍借阅管理信息" viewWidth="600">
	            	<input class="addBaseTable" type="button" name="addBaseTable" value="添加">
	            </a>
            </span>
        </div>
        <div id="searchResult"></div>
    </form>
</div>
</shield:permssion>